package lab02.test14;

public class Circle extends Shape {
    //属性：半径,周长，面积
    double radius;
    Circle(double radius){
        this.radius=radius;
    }
    @Override
        //行为：getArea()方法计算对象的面积
    double getArea() {
        System.out.println("圆的面积：");
        return  3.14*radius*radius;
    }
}
